#if !defined(AFX_SETTINGTCPIPDLG_H__53D14027_54C1_49B3_BDAD_0E08D2538B60__INCLUDED_)
#define AFX_SETTINGTCPIPDLG_H__53D14027_54C1_49B3_BDAD_0E08D2538B60__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SettingTCPIPDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSettingTCPIPDlg dialog
#include "Util/MinButton.h"
#include "Util/MinUtilExt.h"
#include "CommSocket/CommSocket.h"
#include "DataManager/CSystemData.h"
#include "OnLine/COnLine.h"
// Process Layer
class IAutoManager;
class ITrsLoaderPort;

class ILoaderPort;
class CDMControlCenter;
class IOnLine;
class CSystemData;
class CXGem;

class CSettingTCPIPDlg : public CDialog
{
// Construction
private:
	IOnLine* m_lnkOnLine;
	CXGem* m_lnkXGem;

	CSystemData* m_lnkSystemData;
	ILoaderPort* m_lnkLoaderPort;

public:
	void ButtonInitial();
	CSettingTCPIPDlg(IAutoManager* pAM,CDMControlCenter* pDMCC,IOnLine* pOnLine,CWnd* pParent = NULL);   // standard constructor
	
	BOOL m_fSendOK;
	CString m_Msg;
	CString strEqid;
	CString strRecvData;
	UINT m_TimerID;
	
// Dialog Data
// Dialog Data
	//{{AFX_DATA(CSettingTCPIPDlg)
	enum { IDD = IDD_SETTING_TCP_IP };
	CMinButton m_bAgvOn;
	CMinButton m_bAgvOff;
	CMinButton m_bPortUnloading;
	CMinButton m_bPortLoading;
	CMinButton m_bBcrRead;
	CMinButton m_bReadToWork;
	CMinButton m_bWaferWorkStart;
	CMinButton m_bWaferWorkComplete;
	CMinButton m_bWorkComplete;
	CMinButton m_bAlarmOn;
	CMinButton m_bAlarmOff;
	CMinButton m_bExit;
	CString	m_eCommLog;
	CString	m_ServerStatus;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSettingTCPIPDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSettingTCPIPDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnExit();
	afx_msg void OnAgvOnOk();
	afx_msg void OnAgvOffOk();
	afx_msg void OnAlarmOffOk();
	afx_msg void OnAlarmOnOk();
	afx_msg void OnBcrReadOk();
	afx_msg void OnPortLoadingOk();
	afx_msg void OnPortUnloadingOk();
	afx_msg void OnReadyToWorkOk();
	afx_msg void OnWaferWorkCompleteOk();
	afx_msg void OnWaferWorkStartOk();
	afx_msg void OnWorkCompleteOk();
	afx_msg void SendMsg();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SETTINGTCPIPDLG_H__53D14027_54C1_49B3_BDAD_0E08D2538B60__INCLUDED_)
